<!DOCTYPE html>
<html style="
    position: fixed;
    width: 100%;
    height: 100%;
">
<head>
    <meta charset="utf-8">
    <title>第五届辅导员素质能力大赛评分系统</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
    <style>.bd-placeholder-img{font-size:1.125rem;text-anchor:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (min-width:768px){.bd-placeholder-img-lg{font-size:3.5rem}}.b-example-divider{height:3rem;background-color:rgba(0,0,0,.1);border:solid rgba(0,0,0,.15);border-width:1px 0;box-shadow:inset 0 .5em 1.5em rgba(0,0,0,.1),inset 0 .125em .5em rgba(0,0,0,.15)}.form-control-dark{color:#fff;background-color:var(--bs-dark);border-color:var(--bs-gray)}.form-control-dark:focus{color:#fff;background-color:var(--bs-dark);border-color:#fff;box-shadow:0 0 0 .25rem rgba(255,255,255,.25)}.bi{vertical-align:-.125em;fill:currentColor}.text-small{font-size:85%}.dropdown-toggle{outline:0}</style>
    <script src="./js/jquery-1.12.4.js"></script>
    <style>
        .active{
            color: #495057 !important;
        }
        .fs-4 {
            font-size: 2rem!important;
        }
        td, tr {
            text-align: center;
            /*padding-bottom: 0.3px !important;*/
            /*padding-top: 0.3px !important;*/
            padding: 4px !important;
            font-size: 10px !important;
        }
        th{
            padding-bottom: 1.3px !important;
            padding-top: 6.3px !important;
        }
    </style>
</head>

<body style="
    height: 100%;
    position: relative;
">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
    <symbol id="bootstrap" viewBox="0 0 118 94">
        <title>Bootstrap</title>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path>
    </symbol>
    <symbol id="home" viewBox="0 0 16 16">
        <path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z"/>
    </symbol>
    <symbol id="speedometer2" viewBox="0 0 16 16">
        <path d="M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z"/>
        <path fill-rule="evenodd" d="M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A7.988 7.988 0 0 1 0 10zm8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.532 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3z"/>
    </symbol>
    <symbol id="table" viewBox="0 0 16 16">
        <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z"/>
    </symbol>
    <symbol id="people-circle" viewBox="0 0 16 16">
        <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
        <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
    </symbol>
    <symbol id="grid" viewBox="0 0 16 16">
        <path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"/>
    </symbol>
</svg>
<div class="container-fluid text-black " style="background-image: url('/img/title_bg.png');background-size: 100% 100%;padding-bottom: 40px;">

    <img src="/img/logo.png" height="64" width="300" style="top: 20px;position: relative;"><div style="top: 32px;display: inline-block;position: relative;left: 13%;"><span class="fs-4" style="color: white;position: relative;">第五届辅导员素质能力大赛成绩排名</span>

</div>

    <ul class="nav nav-tabs " role="tablist" style="float:right;position: relative;top: 60px;">
        <li class="nav-item fir">
            <a class="nav-link first_grade text-white active" data-bs-toggle="pill" href="#menu1" style="border: 2px solid white !important;">第一环节</a>
        </li>
        <li class="nav-item sec">
            <a class="nav-link second_grade text-white" data-bs-toggle="pill" href="#menu2" style="border: 2px solid white !important;">第二环节</a>
        </li>
    </ul>
</div>



<div class="container mt-3" style="
    margin-top: 0px !important;
    max-width: 100% !important;
">
    <div class="d-flex justify-content-center  ">

    </div>
    <!-- Nav pills -->


    <!-- Tab panes -->
    <div class="tab-content">
        <div id="menu1" class="container tab-pane active" style="
    max-width: 100% !important;
">

            <table class="table table-striped">
                <thead>
                <tr>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>学院</th>
                    <th>初赛成绩(45%)</th>
                    <th>网络投票成绩(5%)</th>
                    <th>评委1</th>
                    <th>评委2</th>
                    <th>评委3</th>
                    <th>评委4</th>
                    <th>评委5</th>
                    <th>案例分析/谈心谈话(50%)</th>
                    <th>排名</th>
                    <th>第一环节成绩</th>
                </tr>
                </thead>
                <tbody class="first_tb">

                </tbody>
            </table>
        </div>
        <div id="menu2" class="container tab-pane fade" style="
    max-width: 100% !important;
">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>学院</th>
                    <th>初赛成绩</th>
                    <th>网络投票成绩</th>
                    <th>案例分析/谈心谈话</th>
                    <th>第一环节成绩(50%)</th>
                    <th>评委1</th>
                    <th>评委2</th>
                    <th>评委3</th>
                    <th>评委4</th>
                    <th>评委5</th>
                    <th>宣讲对谈(50%)</th>
                    <th>排名</th>
                    <th>总成绩</th>
                </tr>
                </thead>
                <tbody class="second_tb">

                </tbody>
            </table>
        </div>
    </div>
</div>
<div style="
    background-image: url('/img/title_bg.png');
    background-size: 100% 100%;
    position: absolute;
    bottom: -19px;
    width: 100%;
    display: block;
    height: fit-content;
    ">

    <div style="
    text-align: center;
    /*background: #01853c;*/
    color: white;
    padding-bottom: 25px;
    padding-top: 25px;
"><span style="
    margin-top: 37px;
    padding: 38px;
    position: relative;
">技术支持:启航科技</span></div>
</div>
<script>
    $(function () {
        $.ajax({
            url: "/getScores",
            type: "GET",
            data: {
                "type": 1
            },
            success: function(data) {
                $(".first_tb").children().remove()
                console.log(data)
                var a = eval(data)
                console.log(a)
                for (var e in a){
                    if (data[e].id==0)
                        alert(data[e].name)
                    console.log(data[e])
                    var html=   "<tr>\n" +
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                            "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                            "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                            "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                            "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                </tr>"
                    $(".first_tb").append(html)
                }

            }
        });
        $(".first_grade").click(function () {

            $.ajax({
                url: "/getScores",
                type: "GET",
                data: {
                    "type": 1
                },
                success: function(data) {
                    $(".first_tb").children().remove()
                    console.log(data)
                    var a = eval(data)
                    console.log(a)
                    for (var e in a){
                        if (data[e].id==0)
                            alert(data[e].name)
                        console.log(data[e])
                        var html=   "<tr>\n" +
                                "                    <td>"+data[e].id+"</td>\n" +
                                "                    <td>"+data[e].name+"</td>\n" +
                                "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                                "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                                "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                                "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                                "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                                "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                                "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                                "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                                "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                                "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                                "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                                "                </tr>"
                        $(".first_tb").append(html)
                    }

                }
            });
        })
        $(".second_grade").click(function () {

            $.ajax({
                url: "/getScores",
                type: "GET",
                data: {
                    "type": 2
                },
                success: function(data) {
                    $(".second_tb").children().remove()
                    console.log(data)
                    var a = eval(data)
                    console.log(a)
                    for (var e in a){
                        var html=   " <tr>\n" +
                                "                    <td>"+data[e].id+"</td>\n" +
                                "                    <td>"+data[e].name+"</td>\n" +
                                "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                                "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                                "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                                "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                                "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                                "                    <td>"+((data[e].pw21==null||data[e].pw21==0)?"":changeTwoDecimal_f(data[e].pw21))+"</td>\n" +
                                "                    <td>"+((data[e].pw22==null||data[e].pw22==0)?"":changeTwoDecimal_f(data[e].pw22))+"</td>\n" +
                                "                    <td>"+((data[e].pw23==null||data[e].pw23==0)?"":changeTwoDecimal_f(data[e].pw23))+"</td>\n" +
                                "                    <td>"+((data[e].pw24==null||data[e].pw24==0)?"":changeTwoDecimal_f(data[e].pw24))+"</td>\n" +
                                "                    <td>"+((data[e].pw25==null||data[e].pw25==0)?"":changeTwoDecimal_f(data[e].pw25))+"</td>\n" +
                                "                    <td>"+((data[e].talk==null||data[e].talk==0)?"":changeTwoDecimal_f(data[e].talk))+"</td>\n" +
                                "                    <td>"+((data[e].pm2==null||data[e].pm2==0)?"":data[e].pm2)+"</td>\n" +
                                "                    <td>"+((data[e].score2==null||data[e].score2==0)?"":changeTwoDecimal_f(data[e].score2))+"</td>\n" +
                                "                </tr>"
                        $(".second_tb").append(html)
                    }

                }
            });
        })
    })
    function timedCount() {
        $.ajax({
            url: "/getScores",
            type: "GET",
            data: {
                "type": 1
            },
            success: function(data) {
                $(".first_tb").children().remove()
                console.log(data)
                var a = eval(data)
                console.log(a)
                for (var e in a){
                    if (data[e].id==0)
                        alert(data[e].name)
                    console.log(data[e])
                    if (data[e].pm==null)
                    {
                        var html=  "<tr>"+
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                            "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                            "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                            "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                            "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                </tr>"
                    }
                    else if (data[e].pm==""||data[e].pm==0)
                    {
                        var html=  "<tr>"+
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                            "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                            "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                            "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                            "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                </tr>"
                    }
                    else if (data[e].pm<=10)
                    {
                        var html=  "<tr style=\"font-weight: bold;\">"+
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                            "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                            "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                            "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                            "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                </tr>"

                    }
                    else
                    {
                        var html=  "<tr>"+
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].pw11==null||data[e].pw11==0)?"":changeTwoDecimal_f(data[e].pw11))+"</td>\n" +
                            "                    <td>"+((data[e].pw12==null||data[e].pw12==0)?"":changeTwoDecimal_f(data[e].pw12))+"</td>\n" +
                            "                    <td>"+((data[e].pw13==null||data[e].pw13==0)?"":changeTwoDecimal_f(data[e].pw13))+"</td>\n" +
                            "                    <td>"+((data[e].pw14==null||data[e].pw14==0)?"":changeTwoDecimal_f(data[e].pw14))+"</td>\n" +
                            "                    <td>"+((data[e].pw15==null||data[e].pw15==0)?"":changeTwoDecimal_f(data[e].pw15))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].pm==null||data[e].pm==0)?"":data[e].pm)+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                </tr>"
                    }

                    $(".first_tb").append(html)
                }

            }
        });
        $.ajax({
            url: "/getScores",
            type: "GET",
            data: {
                "type": 2
            },
            success: function(data) {
                $(".second_tb").children().remove()
                console.log(data)
                var a = eval(data)
                console.log(a)
                for (var e in a){
                    var html= " <tr>\n" +
                            "                    <td>"+data[e].id+"</td>\n" +
                            "                    <td>"+data[e].name+"</td>\n" +
                            "                    <td>"+(data[e].college==null?"":data[e].college)+"</td>\n" +
                            "                    <td>"+((data[e].first==null||data[e].first==0)?"":changeTwoDecimal_f(data[e].first*0.45))+"</td>\n" +
                            "                    <td>"+((data[e].webs==null||data[e].webs==0)?"":changeTwoDecimal_f(data[e].webs*0.05))+"</td>\n" +
                            "                    <td>"+((data[e].score==null||data[e].score==0)?"":changeTwoDecimal_f(data[e].score))+"</td>\n" +
                            "                    <td>"+((data[e].score1==null||data[e].score1==0)?"":changeTwoDecimal_f(data[e].score1))+"</td>\n" +
                            "                    <td>"+((data[e].pw21==null||data[e].pw21==0)?"":changeTwoDecimal_f(data[e].pw21))+"</td>\n" +
                            "                    <td>"+((data[e].pw22==null||data[e].pw22==0)?"":changeTwoDecimal_f(data[e].pw22))+"</td>\n" +
                            "                    <td>"+((data[e].pw23==null||data[e].pw23==0)?"":changeTwoDecimal_f(data[e].pw23))+"</td>\n" +
                            "                    <td>"+((data[e].pw24==null||data[e].pw24==0)?"":changeTwoDecimal_f(data[e].pw24))+"</td>\n" +
                            "                    <td>"+((data[e].pw25==null||data[e].pw25==0)?"":changeTwoDecimal_f(data[e].pw25))+"</td>\n" +
                            "                    <td>"+((data[e].talk==null||data[e].talk==0)?"":changeTwoDecimal_f(data[e].talk))+"</td>\n" +
                            "                    <td>"+((data[e].pm2==null||data[e].pm2==0)?"":data[e].pm2)+"</td>\n" +
                            "                    <td>"+((data[e].score2==null||data[e].score2==0)?"":changeTwoDecimal_f(data[e].score2))+"</td>\n" +
                            "                </tr>"
                    $(".second_tb").append(html)
                }

            }
        });
    }
    var start=setInterval("timedCount()",1000);


    //定义停止计时函数
    function stopCount(){
        clearTimeout(start);
    }




    function changeTwoDecimal_f(x) {
        var f_x = parseFloat(x);
        if (isNaN(f_x)) {
            alert('function:changeTwoDecimal->parameter error');
            return false;
        }
        var f_x = Math.round(x * 100) / 100;
        var s_x = f_x.toString();
        var pos_decimal = s_x.indexOf('.');
        if (pos_decimal < 0) {
            pos_decimal = s_x.length;
            s_x += '.';
        }
        while (s_x.length <= pos_decimal + 2) {
            s_x += '0';
        }
        return s_x;
    }

</script>

</body>
</html>